cmake_minimum_required(VERSION 3.5.0)
project(Main)

set(CMAKE_CXX_STANDARD 17)

file(GLOB LoadShared_srcs *.cpp)
add_library(LoadShared STATIC ${LoadShared_srcs})
target_link_libraries(LoadShared dl)

add_executable(main main.cpp )
target_link_libraries(main LoadShared)